package cn.qingyun.gis.modules.enterprise.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 业务权限表
 * </p>
 *
 * @author skb
 * @since 2024-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("permissions")
@ApiModel(value="Permissions对象", description="业务权限表")
public class Permissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "工号")
    @TableField("crm_account")
    private String crmAccount;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "区域编码")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty(value = "区域名称")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "所属父节点区域编码")
    @TableField("all_parent_code")
    private String allParentCode;

    @ApiModelProperty(value = "区域全称")
    @TableField("full_name")
    private String fullName;

    @ApiModelProperty(value = "角色id")
    @TableField("instance_role_id")
    private String instanceRoleId;

    @ApiModelProperty(value = "角色名称")
    @TableField("instance_role_name")
    private String instanceRoleName;

    @ApiModelProperty(value = " 管理类型")
    @TableField("manager_type")
    private Integer managerType;

    @ApiModelProperty(value = "用户真实姓名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "是否融网格数据")
    @TableField("is_melt_grid")
    private Boolean isMeltGrid;


}
